package com.tanhua.app.controller;

import com.tanhua.app.service.UserService;
import com.tanhua.model.vo.HuanXinUserVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/huanxin")
public class HuanXinController {

    @Autowired
    private UserService userService;

    /**
     * 环信用户信息
     */
    @GetMapping("/user")
    public ResponseEntity<HuanXinUserVo> findHuanXin() {

        HuanXinUserVo vo = userService.findHuanXin();

        return ResponseEntity.ok(vo);
    }

}
